cups: Don't emit a warning if we can't talk to avahi
authorMatthias Clasen <mclasen@redhat.com>
Sun, 2 Aug 2020 02:42:25 +0000 (22:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 2 Aug 2020 03:24:36 +0000 (23:24 -0400)
The g_warning in this case makes the templates test
fail if it can't connect to the system bus (as is the
case for running installed tests in ci).

modules/printbackends/gtkprintbackendcups.c

index f3435b57bbf44cf73a8702b086394a6be10a514f..b168d3436894944db04ec7c8deb3610ad90a4756 100644 (file)
@@ -3415,7 +3415,7 @@ avahi_create_browsers (GObject      *source_object,
   if (!dbus_connection)
     {
       if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-        g_warning ("Couldn't connect to D-Bus system bus, %s", error->message);
+        g_message ("Couldn't connect to D-Bus system bus, avahi printers will not be available: %s", error->message);
 
       g_error_free (error);
       return;